package com.tshopping.service;

import com.tshopping.bean.User;
import com.tshopping.util.ResponseData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    User login(String email, String password);

    boolean register(String email,String password);

    boolean forgetPassword(String email,String password);

    int isExist(String email);

    ResponseData updatePassword(String newPassword,String oldPassword,String email);

    ResponseData updateInformation(String screenName,String name,String sex,String phone,String email,String headPortrait);

    ResponseData uploadHeadPortrait(HttpServletRequest request,String email, MultipartFile file);

    ResponseData addAccount(int account,int user);

    ResponseData getUser(String email,String password);

    ResponseData getAllUser(int currentPage);

    ResponseData updateIsValid(int isValid,int id);

    ResponseData deleteUser(int id);


}
